package com.rfid.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.rfid.client.SettingWindow;
import com.rfid.service.RFIDSaveInfoService;

public class SubmitListener implements ActionListener {

	private SettingWindow settingWindow;
	
	public SubmitListener(SettingWindow settingWindow) {
		super();
		this.settingWindow = settingWindow;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		RFIDSaveInfoService write = new RFIDSaveInfoService(settingWindow);
		write.saveInObject();
		settingWindow.setVisible(false);
	}

}
